﻿@model shenkong.Models.Building

@{
    ViewData["Title"] = "Create";
}

<h1>新建</h1>

<h4>楼栋</h4>
<hr />
<div class="row">
    <div class="col-md-4">
        <form asp-action="Create">
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            <div class="form-group">
                <label asp-for="BuildingId" class="control-label">楼栋id</label>
                <input asp-for="BuildingId" class="form-control" />
                <span asp-validation-for="BuildingId" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="BuildingName" class="control-label">楼栋名称</label>
                <input asp-for="BuildingName" class="form-control" />
                <span asp-validation-for="BuildingName" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="BuidingContain" class="control-label">容纳人数</label>
                <input asp-for="BuidingContain" class="form-control" />
                <span asp-validation-for="BuidingContain" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="RoomNum" class="control-label">房间数</label>
                <input asp-for="RoomNum" class="form-control" />
                <span asp-validation-for="RoomNum" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Beizhu" class="control-label">备注</label>
                <input asp-for="Beizhu" class="form-control" />
                <span asp-validation-for="Beizhu" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="SexClass" class="control-label">宿舍类型</label>
                <input asp-for="SexClass" class="form-control" />
                <span asp-validation-for="SexClass" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Lived" class="control-label">入住人数</label>
                <input asp-for="Lived" class="form-control" />
                <span asp-validation-for="Lived" class="text-danger"></span>
            </div>
            <div class="form-group">
                <input type="submit" value="新建" class="btn btn-primary" />
            </div>
        </form>
    </div>
</div>

<div>
    <a asp-action="Index">返回</a>
</div>

@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
